real time example for adapter design pattern in java